import { api } from 'src/boot/api';

//获取指令材料信息
export const getMatInfo = async (orderNo: string) => {
  return api.get('/getOrder', { params: { orderNo: orderNo } });
};

//获取附近范围的任务
export const getNearByOrder = async (params: { craneNo: string; x: number; y: number }) => {
  return api.get('/getNearByOrder', { params: params });
};

//强制起吊，强制卸下
export const orderOperate = async (params: {
  craneNo: string;
  orderNo: string;
  operType: string;
  currentPos: string;
}) => {
  return api.get('/ManalController/CraneOrderOperate', { params: params });
};

//获取生产计划
export const getProductionPlanList = async (params: { craneNo: string; bayNo: string }) => {
  return api.get('/GetProdList', { params: params });
};
